#!/usr/bin/python

import sys
sys.path.append('../')
import onmsprovision

OPTIONS = {'source' : "TWiO", 'id' : 'foreignid1', 'node-label' : 'MIA-DVR1'}
KEYS = {'building': 'Miami'}

def add_node():
	#Create Node
	action = 'add'
	onmsprovision.process_command(OPTIONS, action, 'node', {}, onmsprovision.URLCONNECT)

def set_node_attributes():
	#set Node Attribute	
	action = 'set'
	onmsprovision.process_command(OPTIONS, action, 'node', KEYS, onmsprovision.URLCONNECT)

def delete_node():
	action = remove
	onmsprovision.process_command(OPTIONS, action, 'node', {}, onmsprovision.URLCONNECT)

if __name__=="__main__":


	add_node()
	set_node_attributes()
	
